
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

package com.hlkj.pay.common;

import com.hlkj.framework.common.exception.IErrorCode;
import com.hlkj.pay.common.constants.ResultCodeConstant;

/**
 * @author lyc
 */

public enum AdResultCode implements IErrorCode {
    AD_MEDIA_EXITS(ResultCodeConstant.AD_PREFIX+1, "广告媒介已存在"),
    AD_MEDIA_NOT_EXITS( ResultCodeConstant.AD_PREFIX+2, "广告媒介不存在"),
    AD_NOT_EXITS( ResultCodeConstant.AD_PREFIX+3, "广告不存在"),
    PAY_ORDER_FAIL( ResultCodeConstant.AD_PREFIX+101, "订单生成失败"),
    REFUND_ORDER_FAIL( ResultCodeConstant.AD_PREFIX+102, "退款订单生成失败,请稍后再试"),
    PAY_ORDER_NOT_EXITS( ResultCodeConstant.AD_PREFIX+103, "支付订单不存在"),
    PAY_ORDER_HAS_CALL( ResultCodeConstant.AD_PREFIX+104, "支付订单已回传"),
    PAY_ORDER_CANNOT_REFUND( ResultCodeConstant.AD_PREFIX+105, "支付订单不可退款"),
    AD_REFUND_AMOUNT_ERROR( ResultCodeConstant.AD_PREFIX+106, "订单可退款金额不够"),
    REFUND_APPLY_ORDER_WAIT_APPROVE( ResultCodeConstant.AD_PREFIX+107, "存在审核中的退款订单,请审核后再发起"),
    REFUND_APPLY_ORDER_NOT_EXITS( ResultCodeConstant.AD_PREFIX+108, "退款申请单不存在"),
    REFUND_APPLY_ORDER_STATUS_NOT_CHANGE( ResultCodeConstant.AD_PREFIX+109, "退款申请单审核状态未变更"),
    REFUND_APPLY_ORDER_AID_NOT_EXIST( ResultCodeConstant.AD_PREFIX+110, "支付订单推送id为空"),
    REFUND_APPLY_ORDER_EXITS( ResultCodeConstant.AD_PREFIX+107, "当前手机号已存在退款申请,请联系客服人员"),

    ;

    /**
     * 错误码
     */
    private final Integer code;
    /**
     * 错误提示
     */
    private final String msg;

    AdResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

}
